package cn.crce.cloud9.basic;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * @author OnCloud9
 * @description
 * @project NRCE-TEST
 * @date 2022年09月09日 下午 09:59
 */
public class Case7 {
    public static void main(String[] args) throws IOException {
        InputStreamReader ir;
        BufferedReader in;
        int sum, x;
        String data;
        //*********Found**********
        sum = 0;
        ir = new InputStreamReader(System.in);
        in = new BufferedReader(ir);
        System.out.println("请输入5个整数：");
        //*********Found**********
        for (int i = 1; i <= 5; i++) {
            data = in.readLine();
            x = Integer.parseInt(data);
            //*********Found**********
            if (x % 2 == 0)
                sum += x;
        }
        System.out.println("偶数之和为"+ sum );
    }
}
